package cn.ujn.medicalbackend.service;

import cn.ujn.medicalbackend.domain.Drug;
import cn.ujn.medicalbackend.request.DrugAddRequest;
import cn.ujn.medicalbackend.request.DrugDeleteRequest;
import cn.ujn.medicalbackend.request.DrugUpdateRequest;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author Drink
* @description 针对表【drug】的数据库操作Service
* @createDate 2024-10-24 15:46:45
*/
public interface DrugService extends IService<Drug> {
    Page<Drug> DrugPageTransfer(Page<Drug> tempPage);
    long addDrug(DrugAddRequest drugAddRequest, HttpServletRequest request);
    boolean updateDrug(DrugUpdateRequest drugUpdateRequest, HttpServletRequest request);
    boolean deleteDrug(DrugDeleteRequest drugDeleteRequest, HttpServletRequest request);
}
